
if( SERVER ) then
   
 	AddCSLuaFile( "shared.lua" ) 
 	SWEP.HoldType = "smg";
 
 end 

 if( CLIENT ) then

	
	SWEP.ViewModelFlip		= true	
	SWEP.CSMuzzleFlashes	= true
	
	SWEP.DrawCrosshair = false;

end
 
SWEP.Base = "ts2_base";
   
SWEP.Spawnable			= false 
SWEP.AdminSpawnable		= true
   


SWEP.Primary.Sound = Sound( "Weapon_ump45.Single" );

SWEP.WorldModel = "models/weapons/w_smg_ump45.mdl";
SWEP.ViewModel = "models/weapons/v_smg_ump45.mdl";

SWEP.PrintName = "HK UMP-45";
SWEP.TS2Desc = "4.6mm automatic";


SWEP.Primary.Recoil			= .2 
SWEP.Primary.RecoilAdd			= .1
SWEP.Primary.RecoilMin = .2
SWEP.Primary.RecoilMax = .5
 
SWEP.Primary.ViewPunchMul = .5;
SWEP.Primary.Damage			= 5 
SWEP.Primary.NumShots		= 1 
 
SWEP.TS2HoldType = "SMG";

SWEP.Primary.ClipSize = 45;
SWEP.Primary.DefaultClip = 45;
SWEP.Primary.Ammo = "smg1";
SWEP.Primary.Delay = .07;
SWEP.Primary.Automatic = true;
SWEP.Primary.SpreadCone = Vector( 0.03, 0.03, 0.03 );

SWEP.Primary.IronSightPos = Vector(7.3, 3.2221, -4.6471);
SWEP.Primary.IronSightAng = Vector(-1.5622, 0, 0.082);

--SWEP.Primary.HolsteredPos = Vector( 10.8, -5.0, -2.0 );
--SWEP.Primary.HolsteredAng = Vector( -5.0, 50.0, 0.0 );

SWEP.Primary.HolsteredPos = Vector(-0.2, -5.8, 1.0)
SWEP.Primary.HolsteredAng = Vector(-13.5, -56.1, 11.7)

SWEP.ItemWidth = 2;
SWEP.ItemHeight = 2;

SWEP.IconCamPos = Vector( 50, -87, 5 ) 
SWEP.IconLookAt = Vector( 0, 0, 0 ) 
SWEP.IconFOV = 13

SWEP.Price = 1560
   